home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / psgml / psgml-api.elc.z / psgml-api.elc
Emacs Compiled Lisp  |  1998-05-21  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 34 3a 30 38 20 31 | 39 39 38 0a 3b 3b 3b 20 |:54:08 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 70 73 67 6d |s-20.3/l|isp/psgm|
|000000a0| 6c 2f 70 73 67 6d 6c 2d | 61 70 69 2e 65 6c 0a 3b |l/psgml-|api.el.;|
|000000b0| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|000000c0| 20 32 30 2e 34 20 22 45 | 6d 65 72 61 6c 64 22 20 | 20.4 "E|merald" |
|000000d0| 58 45 6d 61 63 73 20 20 | 4c 75 63 69 64 2e 0a 3b |XEmacs |Lucid..;|
|000000e0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000f0| 69 6f 6e 20 32 2e 32 35 | 20 58 45 6d 61 63 73 3b |ion 2.25| XEmacs;|
|00000100| 20 32 32 2d 4d 61 72 2d | 39 36 2e 0a 3b 3b 3b 20 | 22-Mar-|96..;;; |
|00000110| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|00000120| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|00000130| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|00000140| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|00000150| 74 20 69 6e 20 45 6d 61 | 63 73 20 31 39 2e 0a 0a |t in Ema|cs 19...|
|00000160| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000170| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000180| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000190| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|000001a0| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|000001b0| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|000001c0| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|000001d0| 65 72 73 69 6f 6e 20 22 | 32 30 22 29 29 29 0a 20 |ersion "|20"))). |
|000001e0| 20 20 20 28 65 72 72 6f | 72 20 22 60 70 73 67 6d | (erro|r "`psgm|
|000001f0| 6c 2d 61 70 69 2e 65 6c | 27 20 77 61 73 20 63 6f |l-api.el|' was co|
|00000200| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|00000210| 20 32 30 22 29 29 0a 0a | 28 6f 72 20 28 62 6f 75 | 20"))..|(or (bou|
|00000220| 6e 64 70 20 27 63 75 72 | 72 65 6e 74 2d 6c 6f 61 |ndp 'cur|rent-loa|
|00000230| 64 2d 6c 69 73 74 29 20 | 28 73 65 74 71 20 63 75 |d-list) |(setq cu|
|00000240| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 20 |rrent-lo|ad-list |
|00000250| 6e 69 6c 29 29 0a 0a 0a | 28 62 79 74 65 2d 63 6f |nil))...|(byte-co|
|00000260| 64 65 20 22 c0 c1 21 88 | c2 c3 21 88 c2 c4 21 87 |de "..!.|..!...!.|
|00000270| 22 20 5b 70 72 6f 76 69 | 64 65 20 70 73 67 6d 6c |" [provi|de psgml|
|00000280| 2d 61 70 69 20 72 65 71 | 75 69 72 65 20 70 73 67 |-api req|uire psg|
|00000290| 6d 6c 20 70 73 67 6d 6c | 2d 70 61 72 73 65 5d 20 |ml psgml|-parse] |
|000002a0| 32 29 0a 23 40 31 39 33 | 20 41 70 70 6c 79 20 45 |2).#@193| Apply E|
|000002b0| 4c 2d 46 55 4e 20 74 6f | 20 45 4c 45 4d 45 4e 54 |L-FUN to| ELEMENT|
|000002c0| 20 61 6e 64 20 74 68 65 | 20 65 6c 65 6d 65 6e 74 | and the| element|
|000002d0| 73 20 69 6e 20 69 74 73 | 20 63 6f 6e 74 65 6e 74 |s in its| content|
|000002e0| 2e 0a 54 68 65 20 45 4c | 2d 46 55 4e 20 6d 61 79 |..The EL|-FUN may|
|000002f0| 20 63 68 61 6e 67 65 20 | 74 68 65 20 62 75 66 66 | change |the buff|
|00000300| 65 72 2e 20 20 42 75 74 | 20 69 66 20 69 74 20 63 |er. But| if it c|
|00000310| 68 61 6e 67 65 73 20 74 | 68 65 20 62 75 66 66 65 |hanges t|he buffe|
|00000320| 72 20 61 6e 64 0a 6c 65 | 61 76 65 73 20 74 68 65 |r and.le|aves the|
|00000330| 20 65 6c 65 6d 65 6e 74 | 20 77 69 74 68 20 6e 6f | element| with no|
|00000340| 20 73 74 61 72 74 2d 74 | 61 67 20 73 6f 6d 65 20 | start-t|ag some |
|00000350| 65 6c 65 6d 65 6e 74 73 | 20 6d 61 79 20 62 65 20 |elements| may be |
|00000360| 69 67 6e 6f 72 65 64 2e | 1f 0a 28 64 65 66 61 6c |ignored.|..(defal|
|00000370| 69 61 73 20 27 73 67 6d | 6c 2d 6d 61 70 2d 65 6c |ias 'sgm|l-map-el|
|00000380| 65 6d 65 6e 74 2d 6d 6f | 64 69 66 79 20 23 5b 28 |ement-mo|dify #[(|
|00000390| 65 6c 2d 66 75 6e 20 65 | 6c 65 6d 65 6e 74 29 20 |el-fun e|lement) |
|000003a0| 22 c0 c1 c2 20 1b 1c 1d | 0e 06 ad c4 0e 07 0e 06 |"... ...|........|
|000003b0| 21 88 0b c2 20 55 ac 8b | c8 c9 0e 06 21 21 16 06 |!... U..|....!!..|
|000003c0| c2 20 13 ca 0e 06 21 89 | 14 ab 85 0d 54 15 aa 99 |. ....!.|....T...|
|000003d0| 0d c0 56 ab 94 cb 0e 06 | 21 89 14 ac 8c 0e 06 cc |..V.....|!.......|
|000003e0| 48 16 06 0d 53 89 15 aa | 68 0c 89 16 06 ac 3d c1 |H...S...|h.....=.|
|000003f0| 2b 87 22 20 5b 30 20 6e | 69 6c 20 62 75 66 66 65 |+." [0 n|il buffe|
|00000400| 72 2d 6d 6f 64 69 66 69 | 65 64 2d 74 69 63 6b 20 |r-modifi|ed-tick |
|00000410| 74 69 63 6b 20 6e 65 78 | 74 20 6c 65 76 65 6c 20 |tick nex|t level |
|00000420| 65 6c 65 6d 65 6e 74 20 | 65 6c 2d 66 75 6e 20 73 |element |el-fun s|
|00000430| 67 6d 6c 2d 66 69 6e 64 | 2d 65 6c 65 6d 65 6e 74 |gml-find|-element|
|00000440| 2d 6f 66 20 73 67 6d 6c | 2d 65 6c 65 6d 65 6e 74 |-of sgml|-element|
|00000450| 2d 73 74 61 72 74 20 73 | 67 6d 6c 2d 65 6c 65 6d |-start s|gml-elem|
|00000460| 65 6e 74 2d 63 6f 6e 74 | 65 6e 74 20 73 67 6d 6c |ent-cont|ent sgml|
|00000470| 2d 65 6c 65 6d 65 6e 74 | 2d 6e 65 78 74 20 35 5d |-element|-next 5]|
|00000480| 20 34 20 28 23 24 20 2e | 20 36 38 31 29 5d 29 0a | 4 (#$ .| 681)]).|
|00000490| 23 40 31 32 31 20 4d 61 | 70 20 63 6f 6e 74 65 6e |#@121 Ma|p conten|
|000004a0| 74 20 6f 66 20 45 4c 45 | 4d 45 4e 54 2c 20 63 61 |t of ELE|MENT, ca|
|000004b0| 6c 6c 69 6e 67 20 45 4c | 45 4d 45 4e 54 2d 46 55 |lling EL|EMENT-FU|
|000004c0| 4e 20 66 6f 72 20 65 76 | 65 72 79 20 65 6c 65 6d |N for ev|ery elem|
|000004d0| 65 6e 74 2e 0a 41 6c 73 | 6f 20 63 61 6c 6c 69 6e |ent..Als|o callin|
|000004e0| 67 20 44 41 54 41 2d 46 | 55 4e 2c 20 69 66 20 6e |g DATA-F|UN, if n|
|000004f0| 6f 6e 2d 6e 69 6c 2c 20 | 77 69 74 68 20 64 61 74 |on-nil, |with dat|
|00000500| 61 20 69 6e 20 63 6f 6e | 74 65 6e 74 2e 1f 0a 28 |a in con|tent...(|
|00000510| 64 65 66 61 6c 69 61 73 | 20 27 73 67 6d 6c 2d 6d |defalias| 'sgml-m|
|00000520| 61 70 2d 63 6f 6e 74 65 | 6e 74 20 23 5b 28 65 6c |ap-conte|nt #[(el|
|00000530| 65 6d 65 6e 74 20 65 6c | 65 6d 65 6e 74 2d 66 75 |ement el|ement-fu|
|00000540| 6e 20 26 6f 70 74 69 6f | 6e 61 6c 20 64 61 74 61 |n &optio|nal data|
|00000550| 2d 66 75 6e 20 70 69 2d | 66 75 6e 20 65 6e 74 69 |-fun pi-|fun enti|
|00000560| 74 79 2d 66 75 6e 29 20 | 22 c0 20 88 c1 20 88 c2 |ty-fun) |". .. ..|
|00000570| 0b 21 88 64 1c 8a c5 0b | c6 5c 22 88 6d ab 83 c7 |.!.d....|.\".m...|
|00000580| 20 88 6c ab 83 c8 75 88 | c9 0c 0e 5c 6e 0e 0b 0e | .l...u.|...\n...|
|00000590| 0c 24 88 0b cd 48 89 1e | 0e ab a2 c0 20 88 0e 0f |.$...H..|.... ...|
|000005a0| 0e 0e 21 88 c5 0e 0e d0 | 5c 22 88 c9 0c 0e 5c 6e |..!.....|\"....\n|
|000005b0| 0e 0b 0e 0c 24 88 0e 0e | d1 48 89 16 0e ac 5e 2b |....$...|.H....^+|
|000005c0| c0 20 87 22 20 5b 73 67 | 6d 6c 2d 70 6f 70 2d 61 |. ." [sg|ml-pop-a|
|000005d0| 6c 6c 2d 65 6e 74 69 74 | 69 65 73 20 73 67 6d 6c |ll-entit|ies sgml|
|000005e0| 2d 6e 65 65 64 2d 64 74 | 64 20 73 67 6d 6c 2d 65 |-need-dt|d sgml-e|
|000005f0| 6c 65 6d 65 6e 74 2d 65 | 6e 64 20 65 6c 65 6d 65 |lement-e|nd eleme|
|00000600| 6e 74 20 6d 61 69 6e 2d | 62 75 66 66 65 72 2d 6d |nt main-|buffer-m|
|00000610| 61 78 20 73 67 6d 6c 2d | 73 65 74 2d 70 61 72 73 |ax sgml-|set-pars|
|00000620| 65 2d 73 74 61 74 65 20 | 73 74 61 72 74 20 73 67 |e-state |start sg|
|00000630| 6d 6c 2d 70 6f 70 2d 65 | 6e 74 69 74 79 20 31 20 |ml-pop-e|ntity 1 |
|00000640| 73 67 6d 6c 2d 70 61 72 | 73 65 2d 64 61 74 61 20 |sgml-par|se-data |
|00000650| 64 61 74 61 2d 66 75 6e | 20 70 69 2d 66 75 6e 20 |data-fun| pi-fun |
|00000660| 65 6e 74 69 74 79 2d 66 | 75 6e 20 31 31 20 63 20 |entity-f|un 11 c |
|00000670| 65 6c 65 6d 65 6e 74 2d | 66 75 6e 20 61 66 74 65 |element-|fun afte|
|00000680| 72 20 31 30 5d 20 36 20 | 28 23 24 20 2e 20 31 31 |r 10] 6 |(#$ . 11|
|00000690| 37 34 29 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |74)]).(d|efalias |
|000006a0| 27 73 67 6d 6c 2d 70 61 | 72 73 65 2d 64 61 74 61 |'sgml-pa|rse-data|
|000006b0| 20 23 5b 28 73 67 6d 6c | 2d 67 6f 61 6c 20 73 67 | #[(sgml|-goal sg|
|000006c0| 6d 6c 2d 64 61 74 61 2d | 66 75 6e 63 74 69 6f 6e |ml-data-|function|
|000006d0| 20 73 67 6d 6c 2d 70 69 | 2d 66 75 6e 63 74 69 6f | sgml-pi|-functio|
|000006e0| 6e 20 73 67 6d 6c 2d 65 | 6e 74 69 74 79 2d 66 75 |n sgml-e|ntity-fu|
|000006f0| 6e 63 74 69 6f 6e 29 20 | 22 c0 19 c0 c2 8d 29 87 |nction) |".....).|
|00000700| 22 20 5b 65 6c 2d 64 6f | 6e 65 20 73 67 6d 6c 2d |" [el-do|ne sgml-|
|00000710| 74 68 72 6f 77 2d 6f 6e | 2d 65 6c 65 6d 65 6e 74 |throw-on|-element|
|00000720| 2d 63 68 61 6e 67 65 20 | 28 62 79 74 65 2d 63 6f |-change |(byte-co|
|00000730| 64 65 20 22 c0 20 19 c2 | 0b 21 88 c4 8e c5 c6 21 |de ". ..|.!.....!|
|00000740| 2a 87 22 20 5b 73 79 6e | 74 61 78 2d 74 61 62 6c |*." [syn|tax-tabl|
|00000750| 65 20 6e 6f 72 6d 61 6c | 2d 73 79 6e 74 61 78 2d |e normal|-syntax-|
|00000760| 74 61 62 6c 65 20 73 65 | 74 2d 73 79 6e 74 61 78 |table se|t-syntax|
|00000770| 2d 74 61 62 6c 65 20 73 | 67 6d 6c 2d 70 61 72 73 |-table s|gml-pars|
|00000780| 65 72 2d 73 79 6e 74 61 | 78 20 28 28 73 65 74 2d |er-synta|x ((set-|
|00000790| 73 79 6e 74 61 78 2d 74 | 61 62 6c 65 20 6e 6f 72 |syntax-t|able nor|
|000007a0| 6d 61 6c 2d 73 79 6e 74 | 61 78 2d 74 61 62 6c 65 |mal-synt|ax-table|
|000007b0| 29 29 20 73 67 6d 6c 2d | 70 61 72 73 65 72 2d 6c |)) sgml-|parser-l|
|000007c0| 6f 6f 70 20 6e 69 6c 5d | 20 32 29 5d 20 32 5d 29 |oop nil]| 2)] 2])|
|000007d0| 0a 23 40 32 35 34 20 43 | 72 65 61 74 65 20 61 6e |.#@254 C|reate an|
|000007e0| 20 65 6e 74 69 74 79 20 | 66 72 6f 6d 20 53 54 52 | entity |from STR|
|000007f0| 49 4e 47 20 61 6e 64 20 | 70 75 73 68 20 69 74 20 |ING and |push it |
|00000800| 6f 6e 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |on the t|op of th|
|00000810| 65 20 65 6e 74 69 74 79 | 20 73 74 61 63 6b 2e 0a |e entity| stack..|
|00000820| 41 66 74 65 72 20 74 68 | 69 73 20 74 68 65 20 63 |After th|is the c|
|00000830| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 20 77 69 |urrent b|uffer wi|
|00000840| 6c 6c 20 62 65 20 61 20 | 73 63 72 61 74 63 68 20 |ll be a |scratch |
|00000850| 62 75 66 66 65 72 20 63 | 6f 6e 74 61 69 6e 69 6e |buffer c|ontainin|
|00000860| 67 20 74 68 65 20 74 65 | 78 74 0a 6f 66 20 74 68 |g the te|xt.of th|
|00000870| 65 20 6e 65 77 20 65 6e | 74 69 74 79 20 77 69 74 |e new en|tity wit|
|00000880| 68 20 70 6f 69 6e 74 20 | 61 74 20 74 68 65 20 66 |h point |at the f|
|00000890| 69 72 73 74 20 63 68 61 | 72 61 63 74 65 72 2e 0a |irst cha|racter..|
|000008a0| 20 20 20 20 55 73 65 20 | 60 73 67 6d 6c 2d 70 6f | Use |`sgml-po|
|000008b0| 70 2d 65 6e 74 69 74 79 | 27 20 74 6f 20 65 78 69 |p-entity|' to exi|
|000008c0| 74 20 66 72 6f 6d 20 74 | 68 69 73 20 62 75 66 66 |t from t|his buff|
|000008d0| 65 72 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |er...(de|falias '|
|000008e0| 73 67 6d 6c 2d 70 75 73 | 68 2d 74 6f 2d 73 74 72 |sgml-pus|h-to-str|
|000008f0| 69 6e 67 20 23 5b 28 73 | 74 72 69 6e 67 29 20 22 |ing #[(s|tring) "|
|00000900| c0 c1 c2 5c 6e 45 21 87 | 22 20 5b 73 67 6d 6c 2d |...\nE!.|" [sgml-|
|00000910| 70 75 73 68 2d 74 6f 2d | 65 6e 74 69 74 79 20 22 |push-to-|entity "|
|00000920| 23 53 54 52 49 4e 47 22 | 20 73 74 72 69 6e 67 5d |#STRING"| string]|
|00000930| 20 34 20 28 23 24 20 2e | 20 32 30 30 37 29 5d 29 | 4 (#$ .| 2007)])|
|00000940| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+